package com.sgg.springbootsgg001demo.springconfig;
import com.sgg.springbootsgg001demo.bean.Cat;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Spring3Stater {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("ioc.xml");
        Cat cat = applicationContext.getBean(Cat.class);
        System.out.println("cat = " + cat);
    }

}
